package net.minecraft.src;


public class Coords
{
	
    int x;
    int y;
    int z;
    public Coords(int i, int j, int k)
    {
        x = i;
        y = j;
        z = k;
    }
    
    
    public int compareTo(Coords coords)  
    {  
    	return
    	hashCode() - coords.hashCode();
    	
    }  
      
      
    @Override  
    public int hashCode()  
    {  
        return x<<16+y<<8+z;  
    }  
    
    
    public  boolean   equals(Object equal)
    {
    	if(equal.getClass() != Coords.class )
    		super.equals(equal);
    	
    	Coords 	coords = (Coords)equal;
    	return(
    		   x == coords.x	
    		&& y == coords.y
    		&& z== coords.z
    		);

    }
}